﻿/*-------------------------------------------------------------------------
* 命名空间: ScreenCapture.ViewModels/AboutViewModel
* 类       名: AboutViewModel
* 功      能:  TD
* 时      间:  2023/12/5 10:33:19
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using Reactive.Bindings;
using ScreenCapture.Base.Services;
using ScreenCapture.Core;
using ScreenCapture.Core.ViewModels;
using ScreenCapture.Loc;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace ScreenCapture.ViewModels
{
    public class AboutViewModel : ViewModelBase
    {
        public AboutViewModel(Settings Settings, ILocalizationProvider Loc) : base(Settings, Loc)
        {
            // FieldCount决定的是返回的字符串重点的组件数量,不只是单纯的长度.
            // FieldCount 为 1, 返回主版本号
            // FieldCount 为 2, 返回主版本号和次版本号
            AppVersion = "V" + Version.ToString(3);


        }

        static AboutViewModel()
        {
            Version = ServiceProvider.AppVersion;
        }

        // 版本信息
        public static Version Version { get; }

        // 应用程序版本
        public string? AppVersion { get; }


    }
}
